package com.atung.parking.enums;

import lombok.Getter;

/**
 * 套餐类型
 * @author Administrator
 */

@Getter
public enum ParkingPackageType {
    MORNING("上午"),
    AFTERNOON("下午"),
    NIGHT("夜间"),
    ALL_DAY("全天");

    private final String description;
    public static String getDescriptionByName(String name) {
        for (ParkingPackageType type : values()) {
            if (type.name().equals(name)) {
                return type.getDescription();
            }
        }
      return name;
    }
    ParkingPackageType(String description) {
        this.description = description;
    }
}
